package com.comac.tasks.manager.app.filter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description feign鉴权配置类
 * @Author lihao
 * @Date 2022/1/14 19:54
 */
@Component
@ConfigurationProperties(prefix = "feign.api.auth")
@Data
public class FeignAuthProperties {

    /**
     * 是否开启feign api 鉴权
     */
    private boolean enable;

    /**
     * key = appCode, value = appAccessKey
     */
    private Map<String, String> apps = new HashMap<>(0);
}
